package com.trkj.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the MEDCINESTORE_LACK_DRUGS database table.
 * 
 */
@Entity
@Table(name="MEDCINESTORE_LACK_DRUGS")
@NamedQuery(name="MedcinestoreLackDrug.findAll", query="SELECT m FROM MedcinestoreLackDrug m")
public class MedcinestoreLackDrug implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="LACK_DRUGS_ID")
	private long lackDrugsId;

	@Temporal(TemporalType.DATE)
	@Column(name="DRUGSHORT_DATE")
	private Date drugshortDate;

	@Column(name="DRUGSHORT_DRUG_NUMBER")
	private BigDecimal drugshortDrugNumber;

	@Column(name="DRUGSHORT_DRUGS_COST")
	private BigDecimal drugshortDrugsCost;

	@Column(name="DRUGSHORT_NOTE")
	private String drugshortNote;

	//bi-directional many-to-one association to Medcinestore
	@ManyToOne
	@JoinColumn(name="MEDCINESTORE_ID")
	private Medcinestore medcinestore;

	//bi-directional many-to-one association to MedcineDetail
	@ManyToOne
	@JoinColumn(name="MEDCINE_ID")
	private MedcineDetail medcineDetail;

	//bi-directional many-to-one association to Staff
	@ManyToOne
	@JoinColumn(name="STAFF_ID")
	private Staff staff;

	public MedcinestoreLackDrug() {
	}

	public long getLackDrugsId() {
		return this.lackDrugsId;
	}

	public void setLackDrugsId(long lackDrugsId) {
		this.lackDrugsId = lackDrugsId;
	}

	public Date getDrugshortDate() {
		return this.drugshortDate;
	}

	public void setDrugshortDate(Date drugshortDate) {
		this.drugshortDate = drugshortDate;
	}

	public BigDecimal getDrugshortDrugNumber() {
		return this.drugshortDrugNumber;
	}

	public void setDrugshortDrugNumber(BigDecimal drugshortDrugNumber) {
		this.drugshortDrugNumber = drugshortDrugNumber;
	}

	public BigDecimal getDrugshortDrugsCost() {
		return this.drugshortDrugsCost;
	}

	public void setDrugshortDrugsCost(BigDecimal drugshortDrugsCost) {
		this.drugshortDrugsCost = drugshortDrugsCost;
	}

	public String getDrugshortNote() {
		return this.drugshortNote;
	}

	public void setDrugshortNote(String drugshortNote) {
		this.drugshortNote = drugshortNote;
	}

	public Medcinestore getMedcinestore() {
		return this.medcinestore;
	}

	public void setMedcinestore(Medcinestore medcinestore) {
		this.medcinestore = medcinestore;
	}

	public MedcineDetail getMedcineDetail() {
		return this.medcineDetail;
	}

	public void setMedcineDetail(MedcineDetail medcineDetail) {
		this.medcineDetail = medcineDetail;
	}

	public Staff getStaff() {
		return this.staff;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}

}